package com.itheima.reggie;

import lombok.extern.slf4j.Slf4j;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.transaction.annotation.EnableTransactionManagement;

@SpringBootApplication      //SpringBoot的入口
@MapperScan("com.itheima.reggie.mapper")    //扫描mapper层创建代理对象
@EnableTransactionManagement    //开启注解事务管理
@Slf4j  //日志管理
@EnableCaching      //开启基于注解的缓存功能
public class WebAppApplication {
    public static void main(String[] args) {
        SpringApplication.run(WebAppApplication.class,args);
        log.info("项目启动成功");
    }
}
